package animal;

import animal.Animal;
import animal.Cat;
import animal.Dog;
import animal.Fish;

public class MainApplication{
    public static void main(String[] args){
        Dog dog=new Dog();
        dog.setAnimalName("狗");
        dog.run();
        Cat cat=new Cat();
        cat.setAnimalName("猫");
        cat.run();
        Fish fish=new Fish();
        fish.setAnimalName("鱼");
        fish.run();
    }
}
